﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<object>" %>
<%@ Import Namespace="Ctef.Web.Resources.Home" %>
<%@ Import Namespace="Ctef.Web.Resources.Shared" %>

<asp:Content ID="Content1" ContentPlaceHolderID="LeftContent" runat="server">
    <div class="callout"><%= SharedStrings.CallOut_ImpactSummary %></div>
    <a class="heading2" href="http://www.ctef.org/blog"><%= Strings.Home_LatestUpdates %></a>
    <hr />
    <div class="blogbox">
        <script src="http://feeds.feedburner.com/CtefBlog?format=sigpro" type="text/javascript"></script>
        <noscript>
            <p>
                <%= Strings.Home_SubscribeRss %><a href="http://feeds.feedburner.com/CtefBlog"></a>
                <br />
                <%= Strings.Home_FeedBurner %></p>
        </noscript>
    </div>
</asp:Content>

<%--TODO: should probably refactor this if RightContent is only used by the home page --%>
<asp:Content ID="Content2" ContentPlaceHolderID="RightContent" runat="Server">
    <div class="sidepane_top"><%= Strings.Home_FromStudents %></div>
    <div class="sidepane_body">
        <script type="text/javascript">
            function image() { };

            image = new image();
            number = 0;
            image[number++] = "<img src='images/quote_4.jpg' />" + "<%= Strings.Home_Quote_4 %>";
            image[number++] = "<img src='images/quote_3.jpg' />" + "<%= Strings.Home_Quote_3 %>";
            image[number++] = "<img src='images/quote_2.jpg' />" + "<%= Strings.Home_Quote_2 %>";
            image[number++] = "<img src='images/quote_1.jpg' />" + "<%= Strings.Home_Quote_1 %>";
            increment = Math.floor(Math.random() * number);

            document.write(image[increment]);
        </script>
        <p align="right"><a href="<%= Url.Action("Letters", "Programs") %>"><img src="<%= Url.Content("~/Images/more.gif") %>" alt="<%= Strings.Home_More %>" /></a></p>
    </div>
    <div class="sidepane_bottom">&nbsp;</div>
</asp:Content>
